home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
PASCAL
/
0635.ZIP
/
SETDATE.INC
< prev
next >
Wrap
Text File
|
1987-07-24
|
557b
|
23 lines
Procedure SetDate(Month,Day,Year,DayOfWeek:Integer);
{ Sets the Date through a DOS call. Parameters are as follows;
Month - 1 through 12
Day - 1 through 28,29,30,31
Year - Year desired
WeekDay - 0 through 6 for Monday thru Sunday
}
Type
RegPack = Record
AX,BX,CX,DX,BP,SI,DI,DS,ES,Flags : Integer;
End;
Var
Registers : RegPack;
Begin
With Registers do
Begin
AX := ($2B shl 8) + DayOfWeek;
DX := (Month shl 8) + Day;
CX := Year;
End;
MSDos(Registers);
End; {SetDate}